package jp.nyatla.locationreality;

import java.io.IOException;
import javax.servlet.http.*;

import twitter4j.TwitterException;

import jp.nyatla.nsdb.NtgException;
import jp.nyatla.nyansat.ListTimelineTwitterSession;

@SuppressWarnings("serial")
public class LocationRealityServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		resp.getWriter().println("Hello, world");
		try {
			ListTimelineTwitterSession s=new ListTimelineTwitterSession(req,true);
			s.test("nyatla_st1");
		} catch (TwitterException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NtgException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
